Converting python 3.5 script into executable

by: zafran gul, 8 years ago

Last edited: 8 years ago

I want to convert a python 3.5 script in to .exe , how i can do it?




You must be logged in to post. Please login or register an account.



We've got quite a few examples of doing that here on this site, all using cx_Freeze.

A basic example: https://pythonprogramming.net/converting-python-scripts-exe-executables/

The above will be enough if you're not importing much or anything. If you are using 3rd party libraries and other includes, things get a bit more hairy, but here are a couple more examples:

Converting Tkinter application to .exe and installer with cx_Freeze: https://pythonprogramming.net/converting-tkinter-to-exe-with-cx-freeze/

Converting PyGame to an executable: https://pythonprogramming.net/converting-pygame-executable-cx_freeze/

Good luck!



-Harrison 8 years ago

You must be logged in to post. Please login or register an account.


thankyou. :)


-zafran gul 8 years ago

You must be logged in to post. Please login or register an account.


i am getting an error,
ImportError: No module named 'cx_Freeze.util'

how to solve it?


-zafran gul 8 years ago

You must be logged in to post. Please login or register an account.

i have used py2app module for OS X applications, and you have also an py2exe module.
you can install them with pip and then look with google how to run them. hope this helps.

-kenwaldek 8 years ago

You must be logged in to post. Please login or register an account.